package com.nebula.salary.model.pojo;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 节日福利表
 * </p>
 *
 * @author codex
 * @since 2022-01-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_benefits")
@ApiModel(value="Benefits对象", description="节日福利表")
public class Benefits implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "节日福利编号")
    @TableId(value = "benefits_id", type = IdType.AUTO)
    private Long benefitsId;

    @ApiModelProperty(value = "福利金额")
    private BigDecimal benefitsSalary;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "福利发放时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate issueDate;

    @ApiModelProperty(value = "福利发放年")
    private Integer issueYear;

    @ApiModelProperty(value = "福利发放月")
    private Integer issueMonth;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedTime;


    public static final String BENEFITS_ID = "benefits_id";

    public static final String BENEFITS_SALARY = "benefits_salary";

    public static final String USER_ID = "user_id";

    public static final String ISSUE_DATE = "issue_date";

    public static final String ISSUE_YEAR = "issue_year";

    public static final String ISSUE_MONTH = "issue_month";

    public static final String REMARK = "remark";

    public static final String CREATED_TIME = "created_time";

    public static final String UPDATED_TIME = "updated_time";

}
